#1、dict默认循环的是key
dicts = {"key1":"value1","key2":"value2"}
for d in dicts :
	print(d);

#2、列表生成式
L = [x*x for x in range(1,11)]
print(L)

#3、筛选出偶数的平方
L = [x*x for x in range(1,11) if x%2 ==0 ]
print(L)

#4、使用两层循环形成全排列
L = [m+n for m in "abc" for n in "xyz"]
print(L)

#5、列出当前目录下的所有文件及文件夹
import os
file = [d for d in os.listdir()] #os.listdir可以列出所有文件及文件夹
print(file)

#6、把list中的字符变成小写
L = ['Hello','wOrld',"Python"]
s = [s.lower() for s in L]
print(s)
print(L)

#7、格式拼写
d = {'key1':"value1",'key2':'value2','key3':"value3","key4":'value4'}
print(d.items())
L = [x+"="+y for x,y in d.items()]
print(L)
